Updating form content after the user clicks submit