login and logout buttons work