Form validation; refactors to attach flight components in rails view