Fixing dashboard logout