A pledge or assignment may allow forfeiture of the security to the pledgee or assignee for default or noncompliance with the terms of the loan.