I don't really understand but here is a method that will take two strings and tell you if they are equal
Public Function IsPasswordsEqual(password1 As String, password2 As String) As Boolean
If password1.Equals(password2) Then
Return True
End If
Return False
End Function