Add email confirmation feature, with flag to turn on.