Protected code

Added the code to ad ability to protect pages.