add captcha function to bootstrap.php