use validator.js for server-side validation of fields