login tested added logout
added fetch_userdata f() prototype not tested