save the access token to local storage
check for the access token and route to main page
close app if on main page