Simplified the validation check of "unique id's"