add 'required' attribute for public forms