Fix issue where captcha did not reset after an incorrect password was entered and invalid token error was thrown, ensuring users receive a new captcha token on each attempt. before:  after: user can try again with a new captcha token and login smoothly without encountering the invalid token error.