remove session from error pages