Add user login & logout functions in plugin nd91.