modified the loginAs method to use CSS selectors in place of XPath ones