Corrected version of registration for django 1.4.3