added client side email validation