in reply to DBI password
Hi,
You must encrypt the use supplied password to the same algorithm that the DB use, and compare it with the stored in the DB.
Take a look here.
Regards,