When I tried to log in using ajax first time with wrong credentials it hits the API but then again tried with right credentials show 419 error
Here is the code:-