Use validateRequestMiddleware before registerLopbackModelMiddleware.