fix login script