added helper for form errors