Added creation of context when user is not logged in.