Validate uniqueness of unique_id

Also make the validation message human readable

[#61862446]