Custom header - user with different theme

hello,

I have been playing around with custom header.
I have managed to create custom view based on user login. I can show only the tab I want, without sidebar and header. So far so good.

I can’t figure out why (some times - not always), when I logout and login again it takes me to default view and not to the one I have specified under custom header exceptions. I have to type the URL manually to works. For example it takes me to http://IP:8123/lovelace/default_view instead of http://IP:8123/lovelace/1

My main concern, however, is if it’s possible to login the user with preselected theme? I couln’t find anything documented about it and I am still looking if this is possoble. For example I want the user “test” to login with default theme set as “dark”

any help will be much apreciated
sorry for my english

Makis