[wip] Generic format validator

Allows validate to take an array of criteria