WIP: add checklogin task (there is a nonce encrypt issue)