add login script and test