Refine 'pattern' and 'required' attributes on dialog fields

@gaurave
Good catch, I'd missed the hyphen. Regarding spaces, see below in the discussion.