Fixed logic to check for allowed normal logins

Fixed a small issue in the logic (somehow got an old commit).
Tested and all seems good with this one, apologies.