First of all,i would like to apologize if this has already been stated/discussed, but i just had to get it out of my head xd so yeah,regarding this messed up timeline.........
1.Madara said he died shortly after awakening his rinnegan---->which means he gave it to nagato when nagato was a...