Preventing unauthorized access functions were added in controllers.