update templates and form login