finished the registration module