login and logout completed!