v 0.3.1

Changelog :

1. Fixed logout issue
2. Fixed userid not found issue
3. Reworked user login check, moved functions to constructor