template add and login form