Use authenticated() properly.
Merge remote-tracking branch 'refs/remotes/ivan/bug/fix-is_authenticated-method' into develop