Validator for web forms