added client side validation for name,email