Final(?) revision of the safecode box enclosure.
Fixed bug where invalid codes still caused success when moving from pre_checkin to in_session.