Added simple validation for the configuration file.