fixed login button getting cleared on logout