add captcha and sample code