Validate user authentication on entry detail page.

Fixes a bug where the anon user object would be used
in a query to determine ownership of the application.