text: from django import forms
  from django.contrib.auth import get_user_model
  from django.contrib.auth.forms import UserCreationForm
  
  User = get_user_model()
  
  
  class SignUpForm(UserCreationForm):
      email = forms.EmailField()
      username = forms.CharField(max_length=100)
  
      class Meta:
          model = User
          fields = (
              "email",
              "password1",
              "password2",
              "username",
          )
  