old_contents: from werkzeug.security import generate_password_hash, check_password_hash
  
  class User(object):
      """represents a user who can CRUD his own bucketlists"""
  
      users = {}
  
      def __init__(self, email, username, password):
          """Constructor class to initialize class"""
  
          self.email = email
          self.username = username
          self.password = generate_password_hash(password)
  
  
      def create_user(self):
          """ Class to create and store a user object """
  
          self.users.update({
              self.email: {
                  'email': self.email,
                  'username': self.username,
                  'password': self.password
              }
          })
  
          return self.users
  
new_contents: from flask_login import UserMixin
  from werkzeug.security import generate_password_hash, check_password_hash
  
  class User(UserMixin):
      """Represents a user who can Create, Read, Update & Delete his own bucketlists"""
  
      counter = 0
      users = {}
  
      def __init__(self, email, username, password):
          """Constructor class to initialize class"""
  
          self.email = email
          self.username = username
          self.password = password
          User.counter += 1
  
  
      def create_user(self):
          """ Class to create and store a user object """
  
          self.users.update({
              self.counter: {
                  'email': self.email,
                  'username': self.username,
                  'password': self.password
              }
          })
  
          return self.users
  
      def is_active(self):
          """True, as all users are active."""
          return True
  
      def get_id(self):
          """Return the email address to satisfy Flask-Login's requirements."""
          return self.email
  
      def is_authenticated(self):
          """Return True if the user is authenticated."""
          return True
  
      def is_anonymous(self):
          """False, as anonymous users aren't supported."""
          return False
  
subject: Update User model class with flask-login methods