You might want to check out Authen::Users. haven't personally used it, but I'm a fan of the Authen family.
In reply to Re: login page by stonecolddevin in thread login page by Anonymous Monk