Ensure that team invitations use the User class.