Added some code to perform the logout.