Add client side validation for simple form