Fixed bugs that resulted from not being logged in.