treewut login and logout now working