updating changes made attempting to get form to work with local storage