Simplified parameter validation of req.body and req.params in routes/index.js.