fixing confirmation email behavior