On the locus of curves with automorphisms