code: def __check_valid(self, post_data):
          '''
          To check if the user is succesfully created.
          Return the status code dict.
          '''
          user_create_status = {'success': False, 'code': '00'}
  
          if not tools.check_username_valid(post_data['user_name']):
              user_create_status['code'] = '11'
              return user_create_status
          elif not tools.check_email_valid(post_data['user_email']):
              user_create_status['code'] = '21'
              return user_create_status
          elif MUser.get_by_name(post_data['user_name']):
              user_create_status['code'] = '12'
              return user_create_status
          elif MUser.get_by_email(post_data['user_email']):
              user_create_status['code'] = '22'
              return user_create_status
  
          user_create_status['success'] = True
          return user_create_statuf __check_valid(self, post_data):
          '''
          To check if the user is succesfully created.
          Return the status code dict.
          '''
          user_create_status = {'success': False, 'code': '00'}
  
          if not tools.check_username_valid(post_data['user_name']):
              user_create_status['code'] = '11'
              return user_create_status
          elif not tools.check_email_valid(post_data['user_email']):
              user_create_status['code'] = '21'
              return user_create_status
          elif MUser.get_by_name(post_data['user_name']):
              user_create_status['code'] = '12'
              return user_create_status
          elif MUser.get_by_email(post_data['user_email']):
              user_create_status['code'] = '22'
              return user_create_status
  
          user_create_status['success'] = True
          return user_create_status
docs: To check if the user is succesfully created.
          Return the status code dict.