[ffwizard] fix input validation for wan and lan config