Ensure that some fields are present when setting configuration

Fixes #144