Added validations to product model and tests for validations.