Forbid same name
The savest approach to treat all issues wrt duplicate usernames (playerID) is to prevent the player from entering the waitingroom. They should remain in the login screen until they enter a unique name. That logic requires changes on server-client-ui.