Implement account registration.