Logout functionality started