Do While inputText.Input <> passwords ' Keep displaying the input password input dialog until the correct password has been entered
If inputText.Show("Please enter your password","Password","Submit","","Exit",Null) = DialogResponse.NEGATIVE Then ' If the user selects exit then close the activity
hideMAIN
End If
If inputText.Input <> passwords Then ' Display wrong password message if wrong password entered
ToastMessageShow("Wrong password. Try Again", False)
End If
Loop