Added page security and redirection.