add basic js form validation