proper captcha and relogin handling on register page
new check_captcha function + redirect absolute on prefer_ssl