add conditions option to uniqueness validator
Merge pull request #3420 from gregmolnar/add_conditions_to_validator

add conditions option to uniqueness validator