Creating a component to protect routes - Supabase