persisting user metadata to local storage