refactored submissions_controller.rb create action