added: checking stored token on page load