additional uniqueness validation for models with two values