added logs for error handling from post request