Refactor prompting for user name and email.