fix up login and reset password for django 1.6.