complete the registration module