Implemented security check on all ajax pages