Fixed data validation and added historical cash tracking