added logout button, functionality