Fixed logic to check for allowed normal logins