How do validity and reverence relate in roof prayer?

Prayer in, Around, and on the Roof of the Kaaba