detect if already logined