add sending of confirmation email