added logout functionality / logout button