added login-id fn to login ns