Fixed POST data being passed in URL and broke out JSON parsing from POST
request in order to get errors passed through correctly.