Added logout button to MainUI. Not working though.