add values in inputs when submit the form