You should probably throw an exception if `submitted == true` at this stage.