Updates the Express dependency to version 5.2.1 and its corresponding types. This change also adapts the request validator middleware to extract validated query parameters and store them in `res.locals` instead of modifying `req.query` to align with Express v5's intended usage and prevent potential conflicts. Includes a fix for a server startup error, logging the error and exiting the process, and adds a type definition file for Express locals.