Created loop for getting all invites