Add custom error message map functionality to form handler