Implemented validation on flat files