Fixing issue of Showing logout after login