Fixing Compilation Error
Adding Invite Logic