Login/logout functions, UI improvements, tweaks