Validation for object_id with hyphen.