Fix the captcha check for logged in users