Adding more validation for the config file