validation now displays correctly