fix(Login): reject ajax if login failed