add login and test