[5.0] Allow custom attribute names in validation errors