Rewrites validator to accept multiple rules