Added working logout