Fixed the login template to adapt to the new django 1.5 syntax