auto logout function removed