Changing get to post request for email