def METHOD_NAME(self) -> str:
    new_password = self.cleaned_data.get('new_password')
    confirm_password = self.cleaned_data.get('confirm_password')
    if new_password and confirm_password:
        if new_password != confirm_password:
            raise forms.ValidationError("Your passwords don't match.")
    return confirm_password