validate captcha before submit the register form

Signed-off-by: songyang <waoywssy@gmail.com>