edit the login functionality