check for unique fields