added validation for settings