Fixed an issue with server side login

The new code added to simplify the login and registration calls was not
properly getting the username and email from its parameter.