Validate name and areas fields, fix #2 (RiskDialog state)