modified the loginAs method to use XPaths in place of language dependent labels