store ref to cookie and on signup