added emit ready to authenticate api