Added some simple JavaScript form validation