Creating Login for custom QGCS build

Hello, i’m trying to create a login for my custom build for QGCS. Currently, when i run the source code the main window opens up. Any idea of where I should start creating a login page to show up before the main window loads would be helpful. Thank you!

Can you construct a login window? Please let me know if it works.