- fix login function
- fix renew function
- fix tests