fix #6997 toolbar with login logout and user name and icon
View based authentication with login dialog