Major gamepad problem player controller

Hey people, i have a major player controller problem, connected with gamepads.

So i have two xbox controllers connected.
I have a custom player controller.

Gamepad nr 1 gets player controller 0
Gamepad nr 2 gets no player controller.

checked if it was valid, player controller 0 is valid, but not player controller 1.

This is for a shared screen game locally.

Am i doing something wrong?

So i figured the problem, but heres the other problem:
I have to create a player, apparently, but how do i get the number of current connected gamepads?