add client registration,
change authority to cookie