The role of Cosmic rays in hydrostatic equilibrium of the galactic halo