change get token api that it will return a error json when not login.