login and logout completed