Validate uniqueness of `name` under `parent_id`