added validations to product model