Refactor USERNAME_FIELD usage. Add user queryset sorting.