Handle login status