add captcha to check thread
code refactoring