Spawning the same character more than once

I am trying to make an online game with a maximum number of players per room. I did the spawning method in Blueprints and for some reason it spawns the host multiple times instead of waiting for other players to join the room.

Also there is an error coming back every time I run the project:

PIE: Error: Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: 'SpawnPlayers' from node: Possess in graph: SpawnPlayers in object: BuildingEscapeGameModeBase_BP with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue

I have tried to look it up and all I found is using IsValid node but it does not necessarily solve the problem. I could use some assistance with this please.

Try watching or printing the Index variable you’re using before it is used to Get Player Controller or to Possess pawn, and afterward, access the PlayerController it retrieved and print out the index it actually has. see if they match for the remote clients and not just for the server machine’s players