ui validation for input files