fix logout issue in login panel