updated token get to validate the token and return the internal data