#461 temporary solution for login failure and defensive code
#461 check account state when launching chat and call activities
#461 show failure when login failed.
fix getGrantId()