Implemented security checks for page sending.