Consistent API responses for registration & login

Changed the api responses for user registration and login so the
results are more easily parsed for success or failure.