Adding joi validation to controller.