IsAccessTokenValid reorganized