email auth and try catch