Added config validation on init.