Minor fix in validate