Here is my final code in AppMain.vb, for now
#If
Login.SetLoggedInUser(
#Else
e.ShowMainForm = Login.ShowLoginAndAuthUser(
#End