Add user status check to login