code: def clean_password2(self):
          
          password1 = self.cleaned_data.get("password1")
          password2 = self.cleaned_data.get("password2")
  
          if password1:
              errors = []
              if password1 != password2:
                  errors.append(ugettext("Passwords do not match"))
              if len(password1) < settings.ACCOUNTS_MIN_PASSWORD_LENGTH:
                  errors.append(
                          ugettext("Password must be at least %s characters") %
                          settings.ACCOUNTS_MIN_PASSWORD_LENGTH)
              if errors:
                  self._errors["password1"] = self.error_class(errors)
          return password2
docs: Ensure the password fields are equal, and match the minimum
          length defined by ``ACCOUNTS_MIN_PASSWORD_LENGTH``.