I tested your code in my latest version (to become PUN 1.26 soon) and it works.
Please try setting the PhotonNetwork.player.name before you connect (at least before you join).
If it gets set after joining, then it will be missing in OnPhotonPlayerConnected.
If it’s not working at all, then it might be something I fixed recently and PUN 1.26 will solve this. Coming soon