styling for createProduct and editProduct, validation started for createProduct