Use the client-side validation framework JSValidation