fixed issue preventing email confirmation from going out