Fix bug with showpage feature when login is required for viewing