Fix validation condition