sessioncheck implemented and allowing sessionupdate to change status. Cleanup