Improved user JSON on registration
Catch authentication errors