Add utility functions to class User