application now checks on first run if authenticated