Added a lot of login functionality