Made changes for authenticaton of controllers