Added error logging to confirm code post request