validate product in controller