Use the validation
module to implement front-end form validation.
This module relies on jQuery Validate, so make sure to have it installed first.
Configuration
Use the handlers.init
function to create different validation types, each with their own settings.