add validate to product