fixed perma login

logout button now working correctly