fixed template syntax/added user.active logic