fix username field handling for custom User model in Django 1.5 and up