Add validations to product model and corresponding tests