fixed validate class