check for session on page load