Add a client-side validation