added the register process to pending orders. added another order api: POST /api/orders/register_with_pending_order