[FIX] fixed a minor bug with password reset

Incompatibility issues between django 1.6 and 1.5 addressed