Validation errors were not not checked correctly