Added user status check to authentication/login