cleanup login detection