Praise be to Allah.
It is forbidden to act as a witness for riba-based transactions. You have to repent and seek the forgiveness of Allaah for what you have done when you witnessed this riba-based loan.
And Allaah is the source of strength. May Allaah bless our Prophet Muhammad and his family and companions, and grant them peace.