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?
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.