generalized invalid token errors handling