Added the confirmation email into the lua callback.