Fixing and adding form field custom error messages code.