Finished the login stuff