Not entirely sure what you're trying to archieve. Datamapper validation rules are meant to be processed before it saves an object. You can also set rules to perform transformations when you read an object.
For me, a login process has to do with input validation, not with database validation.