login and register step 1: send message to server and get response
login and register step 2: login with token