Adding error codes for field validation.