Add some token validation utilities.