fix problem with login and reset password