fix bug with login script