Search for:
sub ProcessEdit {If you can find that then you will see a routine like this (not exactly it's edited but the beginning and the end are the same, not this is the last sub routine in your login.cgi):
Replace the statement I added about HTML crap with the code from Ultimate.cgi
Hope that's explains things better?