Fix an edge case when someone logs in right after failing the captcha