The question is not about validation, but application rules. Anyway here is the solution: Conditional application rules