fix nocsrf login stuck.

Now, if you stuck with NoCSRF expire error while logging in. You can
just click login button again. The protection still works as it was.