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

@gaurave
I think we should allow users to have spaces in projetName