Fixed NullPointerException on failed login.