Write registered user to local storage