User::guest undefined warning fix