Simple script for form validation