Is this modified Schnorr signature scheme secure?
This scheme is insecure, as anyone with the public key can generate a forgery of an arbitrary message.  

To do this, the forger would take the message $M$, the public key $y$, pick an arbitrary $z$, and compute $r = y^{-H(M)} g^{z} \bmod p$ and output $(r,z)$