Changes to OrdersResource for authentication