Added userauth check for some templates