Even though Widget type is "managed" Captcha checkbox is always appearing checked

I want to show Turnstile widget after user attemps to type login credentils 2 times wrong in my website.It is a Nextjs application. And I want it to render with checkbox unchecked. But the widget always rendering checked. When i use test siteKey ‘3x00000000000000000000FF’ which is given here https://developers.cloudflare.com/turnstile/reference/testing/ it works fine. The checkbox comes unchecked. What is wrong? Can someone help solving the issue?