Updated login script