Validate uniqueness of ID

recursion is da keyword....!