Log the model during validation errors.