Added compatibility for the custom user model.

This should fix the issue in which the error message doesn't correctly string
substitute the name of the username field as changed in Django 1.5.