made so many changes. shifted methods to model as class methods, shortened validate in controller.
combined lines in task