Added teacher logout.