Reimplement authentication and page protection against unauthenticated users