fix validate class