Domain login

Added support for login on custom domains.
return domain.endswith(pattern)