moving Validator interface to validator package