file permissions fix
added data validation rules to the Product model
implemented a save method and enhance the response of the Product controller to return JSON responses