added email athentication