Adding validation for UsersController.js and productsController.js