add client-side validation tests