fixed login bug where password was reassigned everytime during login. if password authentication fails, user is redirected back to login page