Add the 'required' class if appropriate for all field types