fixed the multiple login bug