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!