Add support for validating a token