Added authentication for the controller