In the Captcha control with refresh handler, the CaptchaService.IsValid() method always returns false during form post validation.
To resolve this issue, use the RefreshCaptcha handler method in the controller and refresh the control only when the refresh action is performed. This will prevent the control from refreshing at the time of form post during validation. Kindly refer to the following code.
This page will automatically be redirected to the sign-in page in 10 seconds.