fix logout bug, was using 'delete' instead of :delete