fixed behavior for pages that require authentication