added email confirmation