If after performing Ghusl, one remembers that he had to cut his fingernails and toenails (before Ghusl), then he did it after Ghusl, is this Ghusl valid?
Yes! Cutting one’s fingernails and toenails after Ghusul has no effect on Ghusul. Ghusul is still valid.