Redid the login template as smarty.