update UI for login/logout/register