Allow result to be set on adding a candidate

Add more validation of results.
TODO: add display of validation failures.