change the login related functions