added form validation for new product page