Figuring out how to use npm package 'joi' for validation.
Next time I'll make the validation it's own JS file for reusability. I also want to figure out how to set the failed messages in the Joi.object({config}). If anyone knows, please send me a link to an example.