add allow_null for select field