Validate unique fields