title: Why are my users able to log in despite having is_Active set to false?
body: <p>I am using abstractbaseuser and baseusermanager.</p>
  <p>Why are my users able to log in despite having <code>is_Active</code> set to <code>False</code>?
  I thought that <code>is_active=False</code> by default makes it such that users cannot login?</p>
  <p>If my understanding is wrong, how can I make it default?</p>
  <p><strong>models.py</strong></p>
  <pre><code>class MyAccountManager(BaseUserManager):
   def create_user(self, email, username, password=None):
    if not email:
     raise ValueError('Users must have an email address')
    if not username:
     raise ValueError('Users must have a username')
  
    user = self.model(
     email=self.normalize_email(email),
     username=username,
    )
  
    user.set_password(password)
    user.save(using=self._db)
    return user
  
   def create_superuser(self, email, username, password):
    user = self.create_user(
     email=self.normalize_email(email),
     password=password,
     username=username,
    )
    user.is_admin = True
    user.is_staff = True
    user.is_superuser = True
    user.save(using=self._db)
    return user
  
  class Account(AbstractBaseUser):
   email                  = models.EmailField(verbose_name=&quot;email&quot;, max_length=60, unique=True)
   username               = models.CharField(max_length=30, unique=True)
   is_admin               = models.BooleanField(default=False)
   is_active              = models.BooleanField(default=True)
   is_staff               = models.BooleanField(default=False)
   is_superuser           = models.BooleanField(default=False)
  
   objects = MyAccountManager()
  
   def has_perm(self, perm, obj=None):
    return self.is_admin
  
   def has_module_perms(self, app_label):
    return True
  </code></pre>
  <p><strong>settings.py</strong></p>
  <pre><code>AUTH_USER_MODEL = 'account.Account'
  AUTHENTICATION_BACKENDS = ( 
      'django.contrib.auth.backends.AllowAllUsersModelBackend', 
      'account.backends.CaseInsensitiveModelBackend',
      )
  </code></pre>