title: Django password form assign widget doesn't work
body: <p>I'm creating a registration form for my website and everything functions, except the 'password1' and 'password2' won't recognize the widgets I assign to them. Below is a part of my code, which should be relevant to the issue from my <em>forms.py</em> file. Note the email part works correctly.</p>
  <p>EDIT: put the whole Form in, also don't mind the identation, it's correct in my file</p>
  <pre><code>class CreateUserForm(UserCreationForm):
    class Meta:
      model = User
      fields = ['password1', 'password2', 'email']
      widgets = {
          'password1': forms.PasswordInput(
              attrs={'class': 'form-control',
                     'placeholder': 'Wachtwoord'}
          ),
          'password2': forms.PasswordInput(
              attrs={'class': 'form-control',
                     'placeholder': 'Wachtwoord'}
          ),
          'email': forms.EmailInput(
              attrs={'class': 'form-control',
                     'placeholder': 'E-mailadres'}
          ),
      }
  </code></pre>
  <p>Below is a part of the <em>registration.html</em> in which the form is drawn. The top part is from the <strong>last name</strong> part which functions normally, the bottom part is from <strong>password1</strong> which doesn't function:</p>
  <pre><code>&lt;div class=&quot;col-md-6&quot;&gt;
      &lt;label for=&quot;last_name&quot; class=&quot;text-info&quot;&gt;
          {{lid_form.last_name.label}}&lt;/label&gt;
      {{lid_form.last_name}}
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;row&quot;&gt;
    &lt;div class=&quot;col-md-6&quot;&gt;
      &lt;label for=&quot;password1&quot; class=&quot;text-info&quot;&gt;
          {{user_form.password1.label}}&lt;/label&gt;
      {{user_form.password1}}
    &lt;/div&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/xmQlk.png" rel="nofollow noreferrer">Picture Example</a></p>