FinishedChapter 12, modified existing login script to use sessions instead of cookies.