Redirect to login if not logged in when reaching the home page.