implement login and logout button