checking for token