Username dereferencing

Fixes issue #160 by calling dereferencing function on username field.