fix: bug in ajax login.