Bug fix: Even if user entered the wrong username or password, he would be redirected to homepage.