added email authentication