Added product validation code