add client side validation demo