added logout button

and removed some debug junk