Fix authentication condition in @authenticate