Consolidated input_check using arrays
updated todo