Moved player login code on server.