Fix validation and stdin fileName