trying to fix problem with post request