Validator component based on Validator.js