Added logout functionality to teacherhome