validating references to entity id path parameters