Hello. I have a script that logs in or prompts account register for a player. Is there a way to wait until the player is logged in or not so that when I make API calls from another script, it doesn't give me the "Must be logged in to call this method" error?