add some dumb js form validation