Fix for inactivity logout for non javascript users