Finish subject and register

params[:subject_ids].each do |subject_id|