I don't know if it will be useful, but I have an idea.
You could insert a logoff button on any of the tabs.
Work with logic using a ui_control and hide the other menus when the button is pressed, and you can still make a system that redirects you to the login screen.
You know that ui_control can return to your messages if any menu is accessed. Use this to your advantage in the first access: when you open the dashboard for the first time but the user did not enter any password or anything, hide the other menus and redirect to the login screen.
I'm also new, but my system works, despite having a few more menus.
If useful, try to adapt.
[{"id":"7310a95c.9f4ef8","type":"ui_form","z":"cfbb6e4f.6526a","name":"","label":"","group":"69c973c5.44f9ec","order":1,"width":6,"height":3,"options":[{"label":"Usuário","value":"User","type":"text","required":true,"rows":null},{"label":"Senha","value":"Senha","type":"password","required":true,"rows":null}],"formValue":{"User":"","Senha":""},"payload":"","submit":"OK","cancel":"Cancelar","topic":"mi","x":4410,"y":120,"wires":[["5d0ab572.47de0c","acd464a0.cedbe8"]]},{"id":"1ff388c.5ae5877","type":"ui_ui_control","z":"cfbb6e4f.6526a","name":"","events":"change","x":4760,"y":80,"wires":[["a2bfe5fb.da9838"]]},{"id":"6de5fa3e.a6bf34","type":"ui_ui_control","z":"cfbb6e4f.6526a","name":"","events":"all","x":4760,"y":400,"wires":[[]]},{"id":"7afbab33.e12a94","type":"join","z":"cfbb6e4f.6526a","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"1","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":4750,"y":180,"wires":[["df0667fb.475718","c73c64b4.6d8ea8","c9f111a3.cc4c7","aa1c6b7a.2c1068","cc634f5f.4fa56","91395916.17bd18","b202aa3d.0b0db8","470c62c9.27f43c","7ee6a929.817948","6554b809.54fe38","95e4b51d.176f38","7e32f91d.86e5e8","e3157e11.a37a4","93da441e.674128","3572867c.a0493a","b9e02f4d.a48bd","fc8f5d24.9ce7e"]]},{"id":"5d0ab572.47de0c","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if ((msg.payload.User == \"admin\")&& (msg.payload.Senha == \"123\"))\n{msg.payload = \"concedida\"\nmsg.topic = \"auto\"\n return msg;\n \n}\nelse \n{\n msg.payload = \"negada\"\n msg.topic = \"auto\"\nreturn msg;\n}","outputs":1,"noerr":0,"x":4420,"y":80,"wires":[["7afbab33.e12a94","324a1b2d.8ce6d4"]]},{"id":"a2bfe5fb.da9838","type":"function","z":"cfbb6e4f.6526a","name":"","func":"\nmsg.topic = \"menu\"\nmsg.payload = msg.tab;\nreturn msg;","outputs":1,"noerr":0,"x":4770,"y":120,"wires":[["7afbab33.e12a94"]]},{"id":"3572867c.a0493a","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\n msg.payload = {\"tab\":\"Login\"}\n return msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"Login\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}} \nreturn msg;\n}","outputs":1,"noerr":0,"x":4760,"y":340,"wires":[["6de5fa3e.a6bf34"]]},{"id":"c73c64b4.6d8ea8","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"HC-SR04 - Distância\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"HC-SR04 - Distância\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\n","outputs":1,"noerr":0,"x":4460,"y":280,"wires":[["6de5fa3e.a6bf34"]]},{"id":"df0667fb.475718","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"InĂcio\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"InĂcio\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":300,"wires":[["6de5fa3e.a6bf34"]]},{"id":"c9f111a3.cc4c7","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"Notificações\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"Notificações\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":320,"wires":[["6de5fa3e.a6bf34"]]},{"id":"aa1c6b7a.2c1068","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"DHT22 - Temperatura \", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"DHT22 - Temperatura \", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":340,"wires":[["6de5fa3e.a6bf34"]]},{"id":"cc634f5f.4fa56","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \" DHT22 - Umidade\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \" DHT22 - Umidade\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":360,"wires":[["6de5fa3e.a6bf34"]]},{"id":"91395916.17bd18","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"DHT22 - Gráfico comparativo\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"DHT22 - Gráfico comparativo\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":380,"wires":[["6de5fa3e.a6bf34"]]},{"id":"b202aa3d.0b0db8","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"DS18B20 - Temperatura\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"DS18B20 - Temperatura\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":400,"wires":[["6de5fa3e.a6bf34"]]},{"id":"470c62c9.27f43c","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"LDR - Luminosidade\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"LDR - Luminosidade\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":420,"wires":[["6de5fa3e.a6bf34"]]},{"id":"7ee6a929.817948","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"ACS712 - Corrente\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"ACS712 - Corrente\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":440,"wires":[["6de5fa3e.a6bf34"]]},{"id":"6554b809.54fe38","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"Entradas auxiliares\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"Entradas auxiliares\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":460,"wires":[["6de5fa3e.a6bf34"]]},{"id":"95e4b51d.176f38","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"RelĂ©s\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"RelĂ©s\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":480,"wires":[["6de5fa3e.a6bf34"]]},{"id":"7e32f91d.86e5e8","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"Ponte H\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"Ponte H\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":500,"wires":[["6de5fa3e.a6bf34"]]},{"id":"e3157e11.a37a4","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"Servomotores\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"Servomotores\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":520,"wires":[["6de5fa3e.a6bf34"]]},{"id":"93da441e.674128","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"SaĂdas auxliares\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"SaĂdas auxliares\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"x":4460,"y":540,"wires":[["6de5fa3e.a6bf34"]]},{"id":"acd464a0.cedbe8","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if ((msg.payload.User == \"admin\")&& (msg.payload.Senha == \"123\"))\n{\n msg.payload = \" \"\n return msg;\n \n}\nelse \n{\n msg.payload = \"Usuário ou senha incorretos.\"\n msg.topic = \"auto\"\nreturn msg;\n}","outputs":1,"noerr":0,"x":4410,"y":160,"wires":[["f9acc720.30fee8"]]},{"id":"f9acc720.30fee8","type":"ui_text","z":"cfbb6e4f.6526a","group":"69c973c5.44f9ec","order":2,"width":6,"height":1,"name":"","label":"","format":"{{msg.payload}}","layout":"col-center","x":4410,"y":200,"wires":[]},{"id":"b7a75c8f.55951","type":"ui_button","z":"cfbb6e4f.6526a","name":"","group":"7c70dffa.9eb6f","order":38,"width":8,"height":1,"passthru":false,"label":"Sair","tooltip":"","color":"","bgcolor":"","icon":"","payload":"negada","payloadType":"str","topic":"auto","x":4610,"y":160,"wires":[["7afbab33.e12a94","a9641b21.e8ac98"]]},{"id":"1d74ac4.b9b9054","type":"ui_ui_control","z":"cfbb6e4f.6526a","name":"","events":"all","x":4820,"y":700,"wires":[[]]},{"id":"c9353a22.b662a8","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload == \"concedida\")\n{\n msg.payload = {\"tab\":\"InĂcio\"}\n return msg;\n}","outputs":1,"noerr":0,"x":4620,"y":700,"wires":[["1d74ac4.b9b9054","bd3cee34.d1228","14b3e3a9.a7d36c"]]},{"id":"324a1b2d.8ce6d4","type":"delay","z":"cfbb6e4f.6526a","name":"","pauseType":"delay","timeout":"0.5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":4750,"y":440,"wires":[["c9353a22.b662a8"]]},{"id":"bd3cee34.d1228","type":"function","z":"cfbb6e4f.6526a","name":"","func":"\nmsg.payload.User = ''\nreturn msg;","outputs":1,"noerr":0,"x":4420,"y":660,"wires":[["7310a95c.9f4ef8"]]},{"id":"14b3e3a9.a7d36c","type":"function","z":"cfbb6e4f.6526a","name":"","func":"msg.payload.Senha = ''\nreturn msg;","outputs":1,"noerr":0,"x":4420,"y":740,"wires":[["7310a95c.9f4ef8"]]},{"id":"a9641b21.e8ac98","type":"function","z":"cfbb6e4f.6526a","name":"","func":"msg.payload = {\"tabs\": {\"show\": \"Login\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}} \nreturn msg;","outputs":1,"noerr":0,"x":4630,"y":80,"wires":[["1ff388c.5ae5877"]]},{"id":"b9e02f4d.a48bd","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"Entradas auxiliares 0 - 5 V\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"Entradas auxiliares 0 - 5 V\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":4460,"y":560,"wires":[["6de5fa3e.a6bf34"]]},{"id":"fc8f5d24.9ce7e","type":"function","z":"cfbb6e4f.6526a","name":"","func":"if (msg.payload.auto == \"negada\")\n{\nmsg.payload = {\"tabs\": {\"hide\": \"Entradas auxiliares 4 - 20 mA\", \"disable\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}\nif (msg.payload.auto == \"concedida\")\n{\nmsg.payload = {\"tabs\": {\"show\": \"Entradas auxiliares 4 - 20 mA\", \"enabled\": [\"secret_tab\", \"unused_stuff\"]}}\nreturn msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":4460,"y":580,"wires":[["6de5fa3e.a6bf34"]]},{"id":"69c973c5.44f9ec","type":"ui_group","z":"","name":"Indique suas credenciais","tab":"cd76a714.a90978","disp":true,"width":6,"collapse":false},{"id":"7c70dffa.9eb6f","type":"ui_group","z":"","name":"","tab":"87539029.82597","disp":true,"width":16,"collapse":false},{"id":"cd76a714.a90978","type":"ui_tab","z":"","name":"Login","icon":"lock","order":16,"disabled":false,"hidden":false},{"id":"87539029.82597","type":"ui_tab","z":"","name":"InĂcio","icon":"insert_emoticon","order":1,"disabled":false,"hidden":false}]