#2449

You can refer:

User Registration
RegistrationMagic