Rather than comparing against a hard-coded value (DEFAULT_DOMAIN), why not use this.domain?  this.domain is set based on the domain received during login.