fixing missing values on form validation