Storing userId in local storage