refactor stock lookup to use activemodel validation on form submission