fixed logout issue for mobile