simple login and unit test