Added setLoginName method.