Initial setup for user logout - GOD that was fucking complicated