Login and templates update