Since cookie is already stored as md5, and you are encrypting it twice, therefore the passwords will not match with that from the db. I found this problem when using the script and thought it was the problem of my server. Please make this change if you are using it, and I have to admit, this is a nice login script, very neat and clean.
Hope that helped. >> NetFriending.com <<
Ted