Upgraded LoginModule to new XPathSelector