trying to fix authcode post request