Fixed register/login system, some init_player problems and player_id functions