def METHOD_NAME(self):
    """
    Validate the form.
    The default implementation validates that the passwords
    match.
    Make sure to call super if you override this::
        class MyCreateAccountForm(AbstractCreateAccountWithPasswordForm):
            ...
            def clean(self):
                cleaned_data = super(MyCreateAccountForm, self).clean()
                # ...
                return cleaned_data
    """
    cleaned_data = super(AbstractCreateAccountWithPasswordForm, self).METHOD_NAME()
    password1 = cleaned_data.get("password1")
    password2 = cleaned_data.get("password2")
    if password1 and password2:
        if password1 != password2:
            raise forms.ValidationError(
                message=_('The passwords do not match.'),
                code='passwords_do_not_match')
    return cleaned_data