Added validation on all settings. #611