Add some client-side validation.