added the ability to display error messages using html helpers