bam! and then it was suddenly a global variable =)

````
var field = "email";
if ( id.match( /^\d+$/g ) ) {
  field = "_id";
} else if ( id.match( /^[^@]+$/g ) ) {
  field = "username";
}
model.findOne( {field: field}, callback );