Fixing a couple of errors and helping myself understand the user session stuff.