validate uniqueness of UID in identity model