preventing navigation to pages requiring auth when you're not logged in