Added a some front-end login functionality.