using loginName instade of username