Finally got user sessions working, login and logout is now officially
implemented