Make sure user is logged in to do CRUD operations