Stopped the action controller from inheriting from the main app
Added csrf protection