Ensure mandatory fields are filled in.