Fix blank page issues for users who aren't logged in