login widget: bugfix and refactoring

+ renamed login_form to form
+ use correct translation for "logout"
+ better homepage checking
+ moved login name logic into cell