Simplifies checking if token is valid