refactor login manager and login box
add login link plugin