Write your own client-side form validation