Added support for authenticating the same username in different subdomains