i need to create a logging name and password for a spreadsheet project am doing. i made this code in vba but it doesnt seen to work, it doesnt take me to the specified sheet and does not didplay the message. any help would be appreciated

Private Sub cmdClickme_Click()
On Error GoTo errorhandler
Dim varResponse As Variant

varResponse = InputBox("Enter your Name")
If varResponse = "name" Then
Sheet2.Select
MsgBox "message here"
Unload Me
frmMain.Show
errorhandler:
Else
MsgBox "Sorry Try Again!"
End If
End Sub