Updated RegisterAccountCommand and its handler.