added more security to pages