Added  captcha validation for submitting query