def METHOD_NAME(self, commit=True):
    user = super().METHOD_NAME(commit=False)
    if commit:
        if self.cleaned_data.get("confirmation", "") != "":
            user.set_password(
                self.cleaned_data["confirmation"],
                self.cleaned_data["oldpassword"]
            )
        user.METHOD_NAME()
    return user