Template Update and login with permission