fixing the error for name to show up after form is dirtied.