save registration info in cookies