fixing uniqueness validator