login and logout buttons with if else