factor the code for posting a form to the verify url into ints own function
remove unecessary http variable