#243: form_validator.js, add 'validate()' method