Added logout option using lecture 9 notes