added email debugging and links to confirmation emails