regex for emails and phones, and code updated