adding simple sanity checks for config validation.