Improved loan validation error messages and added missing \'end\' to Tool class