constraints and expiry date have 'required' attribute based on setting of public availability