support for User model without username field