Added code to detect multi-login users.