REST API login and register for game