Add client-side validation feature