implement RegisterFlow command