some refactor on the captcha and time for ticket to expire