[Fix] User input was not preserved when validation failed.