client side validation of allowed email patterns