categories route handles bad date params