Check that content_for is cleared
Prevent duplicate output of error messages

The method content_for prepends content on each call and does not remove the
former content. That is why we need to clear content_for before displaying
another error.