generate invitation code