fix bugs related to deleting user account that were introduced after changeing how sessions work