updates to the login functionality