Implement error page for expired token
Remove unused code