Adds token check link into event listener so program can tell if user is logged in