Logout button fix

fixes #48