minor bug fixes in logout button