Added validations in product model, test controller, and test model