Migrate to validator 3.4.0

Was using validator 2.0.0 to be consistent with anchor
(used by waterline).  Since anchor accepted my pull
request to upgrade to 3.4.0, we should upgrade to 3.4.0
as well.  Make the syntax changes necessary for this
migration.