You need to validate than the name is string and the price is numeric
also you can add this validations in the model