add conditions option to uniqueness validator