Implemented the registration process.