Refactored validators

Reordered argument to createValidator to allow for partial function
application in validation pipelines