fix validation and show user input data when form doesn't validate