removed active user will be forced logout when they refresh
removed unused code