Middleware wrapper for validate.js validation framework