docs: def authenticate(self, username="", password="", **kwargs):
          """Allow users to log in with their email address."""
          try:
              user = get_user_model().objects.filter(email__iexact=username)[0]
              if check_password(password, user.password):
                  return user
              else:
                  return None
          except IndexError:
              # No user was found, return None - triggers default login failed
              return None