How to extract only the names and email addresses from the forms?