Introducing client-side validation