changed function to .change(function) in the event form auto fills