Updates to the UI and controller, added "login" as a method.
Will throw error if it doesn't work