add a check before loan