enhance form validation