Implement user registration.