LoginWindow can now handle login failed.