Added debugging option, fixed unneeded revalidating sessions