Check logged in user before going to any route.
Redirect to login if user is not logged in.