added autofill feature on error inputs