Welcome back
I changed it to the element name and it seems to be work just fine, thanks!
If (Find("ctl00$c1$txtOldPassword<INPUT>#ctl00_c1_txtOldPassword#@Welcome to RAC Info!")) Then