finished the implementation of the registration process