The evolution of the equivalent width of the Hα emission line and specific star formation rate in star-forming galaxies at 1 < z < 5