added login-password fn to login ns