tokenCheck function

Check for expired API token