modified token validate