update api n loginservice method