Check error messages together with isValid