added validation and tests to borrower model