Protecting the root to ensure user is logged in