Finally, a working validation scheme and a fall-back to use defaults if configured values are all bad