preprocess data before validate_data view