Input validation (check if file exists)