added email authenticaton