title: Is there a way i can add a class or id to a form generated with UserCreationForm in CreateView
body: <p>despite of the hours of struggle i am unable to bootstrap a django form created with UserCreationForm. i want to add bootstrap classes to the  tag but due to my poor knowledge of django class based views i am unable to have a workaround.</p>
  
  <p>urls.py</p>
  
  <pre><code>urlpatterns = [
      path('signup/', views.SignUp.as_view(), name='signup'),
      path('', include('django.contrib.auth.urls')),
  ]
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>class SignUp(CreateView):
      form_class = CustomUserCreationForm
      success_url = reverse_lazy('accounts:login')
      template_name = 'accounts/signup.html'
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class CustomUserCreationForm(UserCreationForm):
      class Meta:
          fields = ('first_name', 'last_name', 'email', 'age', 'height', 'avatar', 'password1', 'password2')
          model = get_user_model()
  
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
          self.fields['password2'].label = "Confirm Password"
  </code></pre>
  
  <p>Current Output
  <a href="https://i.stack.imgur.com/HCuHV.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>Output I want
  <a href="https://i.stack.imgur.com/DdGd8.jpg" rel="nofollow noreferrer">enter image description here</a></p>