Added security for unauthorized pages