Adding the logout method