Save valid form fields in local storage