Error checking for params and change /order to /orders