old_contents: import re
  users = {}
  
  class Users(object):
      """
      this class will handle all the functions related to the users
      """
  
      def __init__(self, username = None, email = None, password = None):
          """constructor to initialize the global variables"""
  
          self.username = username
          self.email = email
          self.password = password
  
      def register_user(self, username, email, password, cpassword):
  
          regUsername = "[a-zA-Z0-9- .]"
          regEmail = r"([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
          regPassword = r"^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$"
  
          if re.match(regUsername,username):
              if username != '' and email != '' and password != '' and cpassword != '' and cpassword != ' ':
                  if username not in users.keys():
                      if email not in users.keys():
                          if password == cpassword:
                              if re.search(regEmail, email):
                                  if re.search(regPassword, password):
                                      users[email]={'uname':username, 'email':email, 'password':password}
                                      return "dict_uccess"
                                  return "success_registration"
                              return "check_email_pattern"
                          return "match_passwords"
                      return "email_in_dict"
                  return "username_in_dict"
              return "null_fields"
          return "check_username_pattern"
  
      def user_login(self, email, password):
          """This will help the user log in and access the resources"""
          if email !='' and password != '':
              if email in users.keys():
                  result = users[email]
                  result_password = result['password']
                  if result_password == password:
                      return 3
                  return 2
              return 1
  
  
  
  
  
new_contents: import re
  users = {}
  
  class Users(object):
      """
      this class will handle all the functions related to the users
      """
  
      def __init__(self, username = None, email = None, password = None):
          """constructor to initialize the global variables"""
  
          self.username = username
          self.email = email
          self.password = password
  
      def register_user(self, username, email, password, cpassword):
  
          regUsername = "[a-zA-Z0-9- .]"
          regEmail = r"([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
          regPassword = r"^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$"
  
          if re.match(regUsername,username):
              if username != '' and email != '' and password != '' and cpassword != '' and cpassword != ' ':
                  if username not in users.keys():
                      if email not in users.keys():
                          if password == cpassword:
                              if re.search(regEmail, email):
                                  if re.search(regPassword, password):
                                      users[email]={'uname':username, 'email':email, 'password':password}
                                      return "dict_uccess"
                                  return "success_registration"
                              return "check_email_pattern"
                          return "match_passwords"
                      return "email_in_dict"
                  return "username_in_dict"
              return "null_fields"
          return "check_username_pattern"
  
      def user_login(self, email, password):
          """This will help the user log in and access the resources"""
          if email !='' and password != '':
              if email in users.keys():
                  result = users[email]
                  result_password = result['password']
                  if result_password == password:
                      
                      return "check_match_password"
                  return "check_email_existence_in_dict"
              return "null_fields"
  
  
  
  
  
subject: change the description of return values in the login function