Logout implemented. All tests passing.