Inversion fix in validate