SCript to validate a token