login and logout test.