logout button, bugfix