Added confirmation e-mail logic