I'm not 100% sure it's required, but honestly it's a good idea. CFI's have to put their cert number in any teaching scenario, so with safety pilot work.......looks like the reasoning is the same.
Check your handy dandy FAR/AIM, or if I get time and bored I might try and find it.