fixing bug with validation and fields with IDs but no names