Added basic logic to builder to validate minimally required parameters.