Change ExtendedUser to CustomUser & set default content type back to text/html.