login script fix