code for acceptin/using email addresses input by users