fixing #34 where errors aren't rendered correctly when validations fail