handled minor bug related to logout