fixed login script