script logs into the app