You need to specify the namespace with element name as well:
from r in document.Descendants(ns + "Credential")
select (string)r.Element(ns + "Username");
Also I recommend you use an explicit cast instead of using Value
property that will prevent the possible exceptions.