add validat

Signed-off-by: lanryzhang <hookyzlr@163.com>