Authlogic: Authenticate with login, password and type fields

Hi guys,

How can we check type field in addition of login and password
fields, before saving a new UserSession with Authlogic?

Thanks.