Coding for the register function
Coding for the register function