add some method about validate