debt input validations, debt ordering based on mode, ready for table creation