assign validated date back into original form element
call on_change function if it was provided