I'm not sure if I am correct, but correct me if I'm wrong.
The way Madara got the Rinnegan is by going through theses steps in his ocular powers. First the regular Sharingan, next the Mangekyou Sharingan, then EMS, and finally the Rinnegan.
I just want some clarification on this topic...