form error messages using shared layout and helper method