Form validation for better-dom