small fixes in models, entries that are allowed to be blank can't be
unique simultaneously