Adds client side validation (using alert box)