def validate_current_password(self, _):
    if (self.current_password.data == self.new_password.data):
        return ValidationError('New password cannot be the same as current!')
def validate_current_password(self, _):
    if (self.current_password.data == self.new_password.data):
        return ValidationError('New password cannot be the same as current!')