loggedin in three state