How lenders can protect themselves