add auth service. modal.hide returns promise.