add a token validity check funct