Fixed potential bugs in confirmation email sending
Fixed potential bugs in confirmation email sending

under certain circumstances, emails won’t send when they have been
requested. Refactored the code, so that the logic of the embedded if
statements is clearer.

jwcarr/SimpleSignUp,jwcarr/SimpleSignUp,jwcarr/SimpleSignUp