Names of other players not showing?

Hi,
I want to show each players name is typed into an input field to show above each player in game:

I’ve got a script called global variables with a public static string called pseudo, as in player name. That is the reference I want to use as input in a UI text above each player, to show each players name in-game, but when the scene loads there’s nothing where the name (pseudo) should be. Here’s my code on the canvas that’s a parent to the text object on each player:

  string PlayerName;



    void Start()
    {
        if (photonView.isMine)
        {
            PlayerName = globalVariables.pseudo;
              
            GetComponentInChildren<Text>().text = PlayerName;
        }
    }

Does anyone know why and how to fix it so that the pseudo string is put into the textfield of the text object on each player?

Does anybody know how to fix this issue please?