It is said that if you pray in Jama'at, Allah will accept your prayer so long as one person in the jama'at prayed a valid prayer. But if nobody among the jama'at prayed a valid prayer, does Allah still accept it?
How will you come to know if no one or everyone prayed a valid prayer?
We all must try to offer valid prayers and hope Allah accepts OUR prayers.
May the creator guide us all.
It's not your decision that who's pray would be accepted, so just try on yourself to have a good praying with most attention. Always think about God from the way of mercy and kindness. Praying in jamaat is so emphasized from different aspects. So what will accept or not is not our duty, you just try to be good, God will hold his duties.