How to pragmatically manage whether a user is logged in, protected route? I created a ProtectedRoute component: