Adding client side validation.