validate方法验证sample OK