Actually, the Church validated Scripture. And there it stops.
Do you not use scripture (Matt.16:18-19) to imply infallibility of the church? Yet, the validity of Matthew as scripture (you say) was made by the infallible church. How can Matthew be used to validate the infallibility of the church when the church has determined the validity of Matthew?