Add validation to product model with tests.