Implemented user registration.