Add log out logic