add before_create action to access controller