Stellar populations in star forming galaxies in the Sloan Digital Sky Survey