Fixed local data being cleared when a user logs out.