added client side validation of phone number