Corrected unexpected errors but still can't process 2nd POST request