creating a user and save to localstorage