Add code to validate product and save prod name in file