go to main page if logged in