When the register or login dialog pops up, the camera should start moving? What don't you understand?
if you put not where login/register starts camera wont start moving lol. as southclaw said not possible to move player's camera after OnPlayerConnect so write your login/register code after OnPlayerRequestClass