Fixed Domain Detection in the User Model abstract class.