protect against bad fields in db