Vid 560 validator model

Abstracted validator model from edit.js

@kenkouot