writing product validations in product model