Use $lenderid instead of shadowing $userid