Factor out email sending from "Signup".
Factor out dummy password.