added support for validation against req.files