To implement request validation middleware using Express.js.
The middleware checks whether the request contains both name and age.
{ "name": "Madhu", "age": 20 }
Valid user data is accepted and invalid data is rejected.