FIXED login
Adpapt to the new api
v1.3.1