added printStatements in validity check to indicate where the failure is