add localStorage for userID and hash