add registration errors to the json response body
Merge pull request #186 from camallen/register_json_errors

add registration errors to the json response body