Logout functionality implemented