uniqueness validation for uid