Refactoring the products controller to respond to JSON
Refactoring through #'s 1 & 2
replace paths with resources :products
Updated products controller
Displaying validation errors on the product form