Refactored and removed validate_input_file