def METHOD_NAME(self):
    if not self.is_submitted() or not self.email.data:
        return None
    return (User.query
            .filter(~User.is_deleted, ~User.is_blocked, ~User.is_pending, User.all_emails == self.email.data)
            .first())