Added support for not allowing the same user to log in twice.