add tests for error messages when submission is invalid