Implemented Logout.