Fixed issue #247 - deactivated users should be logged out