Login API for IDMS