def validate_password1(self, _):
    if (self.password1.data != self.password2.data):
        return ValidationError('New passwords must be the same')
def validate_password1(self, _):
    if (self.password1.data != self.password2.data):
        return ValidationError('New passwords must be the same')