Put the login code in the main form and just do
Code:
            If GaiaonlineLogin1(Username, Password) = True Then
                MsgBox("Logged in.")
            Else
                MsgBox("Login failed.")
            End If