fixed bug with logout, too many variables named username floating around :(