The Bible speaks of the church in two ways. First there are the elect from the beginning of time, children by adoption, members of Christ by sanctification. Then there is the the church of those who profess faith, are baptised, take the Lord’s supper. This church is contains hypocrites. These remain because of lack of discipline.
The invisible church is visible to God. The visible church we are to keep communion with. This “is called the ‘church’ with respect to men.”