Validate uniqueness of id in set models