Fixed uniqueness validation.