Simplify code, remove everything related to 'invitation code'