fix: explicit check of return value of validate
fix: explicit check of return value of validate

(cherry picked from commit 14d02cbbfb7f849c94de07f9c4238a86d7e26e19)

vjFaLk/frappe,vjFaLk/frappe,vjFaLk/frappe,vjFaLk/frappe