Validate uniqueness of names.