Added security to controllers