updated register account command handler.