Function parseFieldErrors