added validation and error message for exemplar_id in addLoan
added loandetailwindow