Fixes bugs from migration to django's auth.