a simple client side form validation script