fix form validation on form javascript so it goes through when there is a regex match