markup changes based on validation errors