Corrected a couple typos and added logout sequence