Made Changes to the way Logout Button Works