Fixing and adding form field custom error messages code.

Currently, many of the form field types do not display their custom error message that can be set in the CMS. This code adds the custom messages to the fields for all the field types.