if login fails, values are erased from the text fields
if login does not return a user. quit the application
Removed the create password method, since it will be handled by the registration page.
Fixed a refactoring error, which caused the application not to return a user after login