fixed email and name parsing issue with regex