Saying that everyone who goes to church is an awful person (and therefore church is awful) because some awful people go to church is no more valid thinking than joining up to fight Americans because there are some bad Americans.