added auto login/logout features for reactivated users, newly signed up users, and users who've deactivated their accounts