user management in templates