Ensure authentication on tasks routes