better validation errors; saving of values in input if submission fails