update invitation code