added security check for few rest resources