Changed invalid state from 'inactive' to 'deleted'.  Maybe should change to use enums instead.