Update validation_function