enforce not null for required fields in posts