code: def save(self, commit=True):
          
          instance = super(UserCreationForm, self).save(commit=commit)
          random_password = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(32))
          instance.set_password(random_password)
          instance.save()
  
          email_form = PasswordResetForm({'email': self.cleaned_data['email']})
          email_form.is_valid()
          email_form.save(email_template_name='accounts/welcome_email.html')
  
          return instance
docs: Save the model instance with the correct Auth Group based on the user_level question