minor refactoring and added an account controller and login page to eventually hook up