Login/Register Error Handling

This fixes some error handling in both the API Interface and in the Login/Register activities.

Eliminates the bug where "Username already taken" and "Invalid username/password" was the only errors shown for the Register and Login activities, respectively.