9
Yes, this code should be in your database as well. If you go to the admin menu:
Admin -> Blocks -> edit login block -> edit template
You should see that code as well. If not, you should update the system module. If it is there, the problem may be in one of the php files.
I had a problem similar once where I had to re-install XOOPS completely because I manually did something wrong in the database
Martijn