Added ability to log in a player through the API