checkLogin cleanup