Form not updating and script error.