fixed post request to heroku server