Add check to see if the token is valid