form validation tweaks