I need to make a site where users can become a member when

Hello,
I need to make a site where users can become a member when they refer two more people to register. Any tips?