RequireJS module to validate form data.