add the function what verify if logined