Implemented credential checks to task controller.