default valid_callback for custom type