Logout functionality added