def validate_new_password(self, _):
    if (self.new_password.data != self.new_password_confirmation.data):
        return ValidationError('New passwords must be the same')
def validate_new_password(self, _):
    if (self.new_password.data != self.new_password_confirmation.data):
        return ValidationError('New passwords must be the same')