working login/logout button