mail is used for sending reports/notifications to users.
If you want another kind of authentication system (and an user registration page), you will have to code it by your own. Modifying SessionController to fit your needs is a good starting point ;-)