Added working logout option