code for accepting/using email addresses input by users