Kesuvos 73: The Marriage of Yaakov and Leah

Why was it valid if Yaakov thought it was Rachel?