The prayer of the man who leads his wife, or sisters in prayer is valid, but it is more rewarding for him to offer obligatory prayer in the mosque. And Allah Knows Best.