public Sub HandleLogin(LoginFromPage As String)
Log(80)
Dim x As ABMModalSheet = page.ModalSheet("login")
If page.ws.Session.GetAttribute2("IsAuthorized", "") = "" Then
Log(90)
'if the next line is commented problem does not happen
Dim y As ABMInput = x.Content.Component("logininp1") '********Here********
End If
' ' user was successful in login. Now navigate to xxx...
page.CloseModalSheet("login")
End Sub