Hai provato ad aggirare l'ostacolo?

...
if Username = "" then

...

if Password = "" then

...