finish invitation code