added new function in the captcha component