add javascript form validation