Add client side validation