only query snippets when user is logged in