fixed email auth issue