Form validation script for prototype